//
//  cinemaTableViewCell.m
//  周末豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "cinemaTableViewCell.h"

@implementation cinemaTableViewCell

- (void)awakeFromNib {
    // Initialization code
}



- (void)dealloc {
    [_addressLabel release];
    [_titleLabel release];
    [_phoneLabel release];
    [_imagView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create {
    
    self.imagView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imagView];
    [_imagView release];
    
    
    self.titleLabel = [[UILabel alloc] init];
    [self.imagView addSubview:self.titleLabel];
    [_titleLabel release];
    
    
    self.addressLabel = [[UILabel alloc] init];
    [self.imagView addSubview:self.addressLabel];
    [_addressLabel release];
    
    self.phoneLabel = [[UILabel alloc] init];
    [self.imagView addSubview:self.phoneLabel];
    [_phoneLabel release];
 
}


- (void)layoutSubviews {
    [super layoutSubviews];
    _imagView.frame = CGRectMake(10, 10, 355, 180);
    
    _titleLabel.frame = CGRectMake(10, 5, 345, 50);
    
    _addressLabel.frame = CGRectMake(10, 60, 330, 60);
    _addressLabel.numberOfLines = 2;
    
    _phoneLabel.frame = CGRectMake(10, 130, 200, 40);
    
    
    
    
    
}












- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
